package com.appwoo.txtws.adapter;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.CheckBox;
import android.widget.TextView;
import com.appwoo.txtws.bean.ContactInfo;
import java.util.ArrayList;

public class ContactAdapter extends BaseAdapter
{
  private Context context = null;
  ArrayList<ContactInfo> itemList;
  private LayoutInflater mInflater;

  public ContactAdapter(Context paramContext, ArrayList<ContactInfo> paramArrayList)
  {
    this.mInflater = LayoutInflater.from(paramContext);
    this.itemList = paramArrayList;
    this.context = paramContext;
  }

  public int getCount()
  {
    return this.itemList.size();
  }

  public Object getItem(int paramInt)
  {
    return Integer.valueOf(paramInt);
  }

  public long getItemId(int paramInt)
  {
    return paramInt;
  }

  public ArrayList<ContactInfo> getItemList()
  {
    return this.itemList;
  }

  public View getView(int paramInt, View paramView, ViewGroup paramViewGroup)
  {
    View localView = this.mInflater.inflate(2130903075, null);
    ViewHolder localViewHolder = new ViewHolder();
    localViewHolder.mname = ((TextView)localView.findViewById(2131493047));
    localViewHolder.msisdn = ((TextView)localView.findViewById(2131493048));
    localViewHolder.check = ((CheckBox)localView.findViewById(2131493045));
    localView.setTag(localViewHolder);
    localViewHolder.mname.setText(((ContactInfo)this.itemList.get(paramInt)).getContactName());
    localViewHolder.msisdn.setText(this.context.getString(2131428013) + ((ContactInfo)this.itemList.get(paramInt)).getUserNumber());
    localViewHolder.check.setChecked(((ContactInfo)this.itemList.get(paramInt)).getIsChecked().booleanValue());
    return localView;
  }

  public void setItemList(ArrayList<ContactInfo> paramArrayList)
  {
    this.itemList = paramArrayList;
  }

  class ViewHolder
  {
    CheckBox check;
    TextView mname;
    TextView msisdn;

    ViewHolder()
    {
    }
  }

  class ViewProgressHolder
  {
    TextView text;

    ViewProgressHolder()
    {
    }
  }
}

/* Location:           C:\Documents and Settings\Administrator\classes_dex2jar.jar
 * Qualified Name:     com.appwoo.txtws.adapter.ContactAdapter
 * JD-Core Version:    0.6.2
 */